package com.cauli.gateway.feignService.model;

import com.cauli.model.vo.BaseVO;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author Cauli
 * @date 2022/12/14 13:48
 * @description 角色返回参数
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "RoleVO", description = "角色返回参数")
public class RoleVO extends BaseVO {
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("用户ID")
    private Long userId;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("角色ID")
    private Long roleId;

    @ApiModelProperty("角色名称")
    private String roleName;

    @ApiModelProperty("角色权限字符串")
    private String roleKey;

    @ApiModelProperty("显示顺序")
    private Integer orderNum;

    @ApiModelProperty("角色状态（0停用 1正常）")
    private Integer status;

    @ApiModelProperty("路由ID列表")
    private List<Long> menuIds;
}
